export class Constants {
  // 请求超时时间
  static readonly REQUEST_TIMEOUT = 6000
  // 管理员登录超时时间
  static readonly ADMIN_LOGIN_TIMEOUT = 60 * 60 * 24 * 1000 // 1天

  // 默认头像
  static readonly DEFAULT_AVATAR =
    'https://gd-hbimg.huaban.com/94d26a8255b902cd27b98da5e4518217ebc437892616-RZJfHt_fw1200webp'

  // 默认姓名
  static readonly DEFAULT_NAME = '未命名'

  // 默认背景图
  static readonly DEFAULT_BACKGROUND_IMAGE = 'https://t7.baidu.com/it/u=3183016778,290919753&fm=193&f=GIF'

  // 路由path
  static readonly PAGE_INDEX = 'pages/Index'
  static readonly PAGE_LOGIN = 'pages/LoginPage'
  static readonly PAGE_REGISTER = 'pages/RegisterPage'
  static readonly START_PAGE = 'pages/StartPage'
  static readonly DEFAULT_PAGE = '@bundle:com.atomicservice.6917582829181798385/'

  /** emitter常量*/
  static readonly EMITTER_SORT = 'emitter_sort' //首页排名更新
  static readonly EMITTER_PAPER_LIST = 'emitter_paper_list' //试卷列表更新
  static readonly EMITTER_PAPER_STATUS = 'emitter_paper_status' //试卷状态更新


  // 固定的key
  static readonly USER_STORE_KEY = "user_store_key" // 用户首选项的key
  static readonly USER_AUTH_KEY = "user_auth_key" // 用户首选项的key
  static readonly USER_INFO_KEY = "user_info_key" // 用户信息的key
  static readonly USER_KEY_INFO_KEY = "user_key_info_key" // 用户信息的key
  static readonly USER_TOP_KEY = "user_top_key" // 用户前三名的数据
  static readonly USER_FORMID_KEY = "user_formId_key" // 用户前三名的数据
  /** 管理员信息key */
  static readonly ADMIN_INFO_KEY = "admin_info_key"

  /** 持久化的key*/
  static readonly ColorModeKey = "colorMode"; // 主题色模式
  static readonly ThemeSwitchKey = 'themeSwitchKey'; //主题开关的key
  static readonly PushMsgKey = 'pushMsgKey'; //主题开关的key
  static readonly BACKGROUND_IMAGE_KEY = 'backImage'; //背景图片的key
}